#ifndef REPORTE_DAZZLING_H
#define REPORTE_DAZZLING_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"


#include "../LOG.h"
#include "../arch_os.h"
#include "../Product_Config.h"

#include "../lwip/tcp.h"
#include "../lwip/report.h"

#include "../ModeHandle/brighness_config.h"
#include "../ModeHandle/mode_status_handle.h"
#include "../ModeHandle/mode_scene_handle.h"
#include "../ModeHandle/mode_light_effect_handle.h"
#include "../ModeHandle/mode_custom_handle.h"

#define IOT_REPORTE_SPEED_MS 20

typedef struct 
{
    EM_SYS_SSP save_ssp; //保存当前状态
    u8 brighness_level; //灯光亮度
    u8 uv_brighness; //UV灯亮度
    u8 uv_switch; //UV灯开关
    u8 light_length; //灯带长度
    u8 audio_soure; //音频源
    u8 audio_data; //音频数据
    u8 micro_senst; //麦克风灵敏度
    EM_SCENE_SSP scene_mode; //场景模式
    LIGHT_EFFECT_MODE light_effect_ssp; //自定义灯光效果
    PART_INFO_T custom_part; //自定义分段信息
    u8 RGB[3];
    u8 custom_ssp;
    u8 wait; //自定义延时时间
}iot_dazzling_info_t;

void task_iot_report_init();
void iot_report_init();




#endif